﻿@model KnowledgeCommunity.Model.Knowledge
           
@{
    ViewBag.Title = "Knowledge Base";
}

<div class="path one columns">Knowledge Base</div>

<div class="slider"></div>

<div class="commentform">
    @using (Html.BeginForm("DoSearch", "Knowledge", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        @Html.ValidationSummary(true)
        <input id="_key" name="_key" type="text" />
        <input class="button" id="Search_click" name="Search_click" type="submit" value="Search" />
        <br />
          
    }
</div>

<div class="slider"></div>
<div class="rs_tabs">
    <div class="rs_tabs_content">
        <div class="rs_tabs_content_page rs_tabs_content_page_active">
            <p>知识列表</p>
            @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Knowledge>)ViewData["KnowledgeList"])
            {
                <div class="columns one">
                    <h6>@item.AddTime</h6>
                    <p><a href="@Url.Action("Details", "Knowledge", new { id = item.Id })"> @item.Title </a></p>
                </div>
                <div class="separate"></div>
            }
            <div class="clear"></div>
        </div>
    </div>
</div>

<h3>You Know?</h3>
<div class="slider"></div>
<div class="rs_tabs">
    <ul class="rs_tabs_nav">
    <li class="rs_tabs_nav_active">热门知识</li>
    <li>知识论坛</li>
    <li>校园智囊团</li>
    </ul>
    <div class="rs_tabs_content">
        <div class="rs_tabs_content_page rs_tabs_content_page_active">
            <p> 热门知识</p>
            @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Knowledge>)ViewData["TopKno"])
            {
                <div class="columns one">
                    <h6>@item.AddTime</h6>
                    <p><span class="dropcap">@item.ClickNum</span><a href="@Url.Action("Details", "Knowledge", new { id = item.Id })"> @item.Title </a></p>
                </div>
            }
            <div class="clear"></div>
        </div>
        <div class="rs_tabs_content_page">
            知识论坛
        </div>
        <div class="rs_tabs_content_page">
            校园智囊团
        </div>
    </div>
</div>
